Hitlist = Hitlist or {}

function GM:DoPlayerDeath(ply,atk,dmginfo)
	if not (IsValid(atk) or atk:IsPlayer()) then return end
	if not (IsValid(ply) or ply:IsPlayer()) then return end

	if not Hitlist then return end

	local toDelete
	for k,v in pairs(Hitlist) do
		if v.Player==ply:UniqueID() and (atk:Team() == TEAM_HITMAN or atk:Team() == TEAM_PROHITMAN) then
			for i, w in pairs(player.GetAll()) do
				if v.Placedby == atk:UniqueID()  then
					w:ChatPrint(atk:Name() .." lost $".. v.Price .." for being a server-rule breaker!")
				else
					if (w:Team() == TEAM_HITMAN or w:Team() == TEAM_PROHITMAN) and w:UniqueID()!=atk:UniqueID() then
						net.Start("lostHit")
						net.Send(w)
					end
					atk:AddMoney(v.Price)
					w:ChatPrint("")
   					w:ChatPrint("NEWS FLASH: " .. ply:Name() .. " has been murdered by a Hitman! (On an ordered hit)")
   					w:ChatPrint("")
   					
				end
			end
			toDelete = k
			updateAllPlayers()
		end
	end

	if toDelete then table.remove(Hitlist,toDelete) end

end

//hook.Add("DoPlayerDeath", "playerdiedonhitcall", DoPlayerDeath)